html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
.container {
  width: 100%;
  max-width: 100%;
}
.todo-container {
  max-width: 100%;
  margin: 0 auto;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.todo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}
.todo-item:last-child {
  border-bottom: none;
}
.completed {
  text-decoration: line-through;
  color: #6c757d;
}
.form-group {
  margin-bottom: 15px;
}
.invalid-feedback {
  display: none;
}
.is-invalid ~ .invalid-feedback {
  display: block;
}
.search-form {
  padding: 0;
  display: flex;
}
.search-form-main {
  flex: 1;
}
.pagination-container {
  text-align: center;
}
ul.pagination {
  margin: 0 !important;
  padding: 0;
  justify-content: center;
}
/* 表格容器样式 */
.table-container {
  position: relative;
  overflow: auto;
  height: 400px;
}

/* 表头固定 */
.table-wrapper {
  overflow: auto;
}

/* 固定表头样式 */
.table-header {
  margin-bottom: 0;
  border-bottom: calc(var(--bs-border-width) * 2) solid currentcolor;
}

/* 固定列样式 */
.fixed-column {
  position: sticky;
  background-color: white;
  z-index: 5;
}

/* 固定第一列 */
thead th.fixed-column:first-child,
tbody td.fixed-column:first-child {
  left: 0;
  min-width: 90px; /* 与你的ID列宽度一致 */
  border-right: 1px solid #dee2e6;
}

/* 固定最后一列 */
thead th.fixed-column:last-child,
tbody td.fixed-column:last-child {
  right: 0;
  min-width: 70px; /* 与你的操作列宽度一致 */
  border-left: 1px solid #dee2e6;
}

/* 确保表体中的固定列有背景色 */
tbody tr td.fixed-column {
  background-color: white;
}

/* 鼠标悬停效果 */
tbody tr:hover td.fixed-column {
  background-color: #f1f1f1;
}
.main-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 确保至少填充整个视口高度 */
  height: 100%;
}
.todo-warp {
  flex: 1;
  padding-bottom: 20px;
}
.todo-warp .todo-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.todo-warp .todo-container .table-wrapper {
  flex: 1;
  margin-bottom: 20px;
}
